/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.eb.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.eb.entity.OrderProduct;
import com.kaaction.modules.eb.dao.OrderProductDao;

/**
 * 订单与商品Service
 * @author zengbiao
 * @version 2017-04-19
 */
@Service
@Transactional(readOnly = true)
public class OrderProductService extends CrudService<OrderProductDao, OrderProduct> {

	public OrderProduct get(String id) {
		return super.get(id);
	}
	
	public List<OrderProduct> findList(OrderProduct orderProduct) {
		return super.findList(orderProduct);
	}
	
	public Page<OrderProduct> findPage(Page<OrderProduct> page, OrderProduct orderProduct) {
		return super.findPage(page, orderProduct);
	}
	
	@Transactional(readOnly = false)
	public void save(OrderProduct orderProduct) {
		super.save(orderProduct);
	}
	
	@Transactional(readOnly = false)
	public void delete(OrderProduct orderProduct) {
		super.delete(orderProduct);
	}

	public OrderProduct getByOrderId(String orderId) {
		return super.dao.getByOrderId(orderId);
	}
	
}